<?php
/* 
    » Alfa CMS Version 1.0.0.1 «
    » Habbo Content Management System - Alfa CMS create by JG «
    » This CMS is for private use, distribution or marketing prohibited. «
    » Jg Projects - Jg Webmaster [http://jgwebmaster.com.ar] «
    » Images and styles from Habbo hotel Sulake, All rights reserved. «
*/

require_once '../environment.php';

RequireLogin();
checkRegister(0);

$_SESSION['quickregister']['step_timesmap'] = time();

unset($_SESSION['quickregister']['error']);

$step1 = $_SESSION['quickregister']['step1']['complete'];
$step2 = $_SESSION['quickregister']['step2']['complete'];

if($step1 && !$step2)
{
	if(!$_SESSION['quickregister']['step2']['duplicate'])
	{
		$_SESSION['quickregister']['step1']['complete'] = null;
		Location('quickregister/age_gate', true, true);
	}
	else
	{
		unset($_SESSION['quickregister']['step2']['duplicate']);
		Location('quickregister/email_password', true, true);
	}
}
else if($step1 && $step2)
{
	$_SESSION['quickregister']['step2']['complete'] = null;
	Location('quickregister/email_password', true, true);
}
?>